package com.ice.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient
@EnableFeignClients
@MapperScan("com.ice.system.dao")
@EntityScan("com.ice.domain.system")//扫描实体类
@ComponentScan(basePackages={"com.ice.api"})//扫描接口
@ComponentScan(basePackages={"com.ice.framework"})//扫描common下的所有类
@SpringBootApplication
public class SystemApplication {
    public static void main(String[] args) throws Exception {
        SpringApplication.run(SystemApplication.class,args);
        System.out.println("系统中心启动成功 ^v^");
    }
}
